import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PaymentController } from './payment.controller';
import { PaymentService } from './payment.service';
import { WechatPayService } from './wechat-pay.service';
import { AlipayService } from './alipay.service';
import { Order } from '../orders/entities/order.entity';
import { OrdersModule } from '../orders/orders.module';

@Module({
  imports: [TypeOrmModule.forFeature([Order]), OrdersModule],
  controllers: [PaymentController],
  providers: [PaymentService, WechatPayService, AlipayService],
  exports: [PaymentService, WechatPayService, AlipayService],
})
export class PaymentModule {}




